No. First of all, in the EU, software modifications cannot void your warranty AFAIK. Second of all, knox is tripped when you flash a custom binary, which needs ...
Knox status is controlled by an E-fuse on the CPU die itself. This fuse is a hardware fuse, not software. The only way to reset the fuse is to replace the chip.